package com.syni.mdd.yhd.common.all.dto.reponseDto.order;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.syni.mdd.yhd.common.all.entity.BmsDxGroupBuyUse;
import com.syni.mdd.yhd.common.all.entity.BmsDxOrder;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * @className 商户端订单管理DTO
 * @description TOO
 * @Author cfx
 * @DATE 2019/7/29 10:48
 * @VERSION 1.0
 **/
@Data
public class BusinessOrderDetailRpDto{
    private Integer payForNum;
    private Double dealAmount;
    private List<BmsDxOrder> payOrders;
    //private List<BmsDxGroupBuyUse> groupBuyOrders;

    private List<BmsDxGroupBuyUseVo> groupBuyOrders;
    private List<OrderManagerList> orderManagerLists;
    @JsonIgnore
    private Integer count = 0;

    @Data
    public static class BmsDxGroupBuyUseVo{
        private Integer id;

        private Integer orderId;

        private Integer userId;

        private Integer businessId;

        private Integer groupBuyId;

        private String groupBuyCode;

        private Double groupBuyPrice = 0d;

        private Double gbuyActualConsum = 0d;

        private Double onceShopMoney = 0d;

        private Double settleMoney = 0d;

        private Double discountMoney = 0d;

        private Double backCacdMoney = 0d;

        private Integer status;

        //private Date commitTime;

        //private Integer isRefund = 0;

        //private Integer refundResult;

        //private Integer auditStatus;

        //private Date auditTime;

        //private Date approvedTime;

        //private Integer acceptStatus = 0;

        //private Date acceptTime;

        //private Integer refundStatus = 0;

        //private Date refundTime;

        private Date newTime;

        private Date useTime;

        private Integer useWay;

        private Integer useManRole;

        private Integer useManId;

        private String nickName;

        private BmsDxOrder bmsDxOrder;

        private Integer alreadyCancelNum;

        private String receivedDesc = "";

        private String richText = "";

        private Integer isBusinessConsume = 1;
    }
}
